<?php
session_start();
require_once($_SESSION['idioma']);
$_SESSION['form'] = "horaris/crearModul.form.php";
?>
<div id='activitat_capcalera'><h2><?php echo utf8_encode($idioma['link_crear_modul']); ?></h2></div>
<div id='activitat_contingut'>
<form id="formulari" name="crearModulHorari">
	<div id="linea"><?php echo $idioma['entrada']; ?></div>
	<div id='separacio'></div>
	<div id="linea">
		<select name="hora_ent" >
			<option value="-1"> <? echo $idioma['hora']; ?> </option>
			<?php
				for ($i=0; $i <= 23; $i++) {
					$temp = trim(substr('00'.$i,-2));
					echo "<option value='".$temp."'>".$temp."</option>";
				}
			?>
		</select>
		<select name="min_ent" >
			<option value="-1"> <? echo $idioma['minut']; ?> </option>
			<?php
				for ($i=0; $i <= 59; $i++) {
					$temp = trim(substr('00'.$i,-2));
					echo "<option value='".$temp."'>".$temp."</option>";
				}
			?>
		</select>
	</div>
	<div id='separacio'></div>
	<div id="linea"><?php echo $idioma['sortida']; ?></div>
	<div id='separacio'></div>
	<div id="linea">
		<select name="hora_sal" >
			<option value="-1"> <? echo $idioma['hora']; ?> </option>
			<?php
				for ($i=0; $i <= 23; $i++) {
					$temp = trim(substr('00'.$i,-2));
					echo "<option value='".$temp."'>".$temp."</option>";
				}
			?>
		</select>
		<select name="min_sal" >
			<option value="-1"> <? echo $idioma['minut']; ?> </option>
			<?php
				for ($i=0; $i <= 59; $i++) {
					$temp = trim(substr('00'.$i,-2));
					echo "<option value='".$temp."'>".$temp."</option>";
				}
			?>
		</select>
	</div>
	<div id='separacio'></div>	
	<div id='separacio'></div>
	<div id="linea">		
		<input type="button" name="boton" value="<?php echo utf8_encode($idioma['boto_crear_modul']); ?>" onclick="enviarPeticio('POST','moduls/horaris/','crearModul.php','missatge','crearModulHorari');" />
	</div>	
	<div id='separacio'></div>
	<div id="missatge"></div>
</form>
</div>